// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FIN_REPORT_PROFIT
// * CreateDate    : 2014-06-05 18:29:52
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:52
// * LastChanger   : 2014-06-05 18:29:52
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class FinReportProfitEntity : EntityBase
    {
        public FinReportProfitTable TableSchema
        {
            get
            {
                return FinReportProfitTable.Current;
            }
		}
		
		public FinReportProfitEntity()
        {

        }
		
		public FinReportProfitEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReportId = Convert.ToString(CommonFunctions.ToObject(dr["REPORT_ID"]));
			this.ProfitDate = Convert.ToString(CommonFunctions.ToObject(dr["PROFIT_DATE"]));
			this.Sumc = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMC"]));
			this.Sumw = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMW"]));
			this.Sumnext = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMNEXT"]));
			this.Sumsalary = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMSALARY"]));
			this.Sumrepair = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMREPAIR"]));
			this.Sumspa = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMSPA"]));
			this.Sumexpenses = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMEXPENSES"]));
			this.Summater = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMMATER"]));
			this.SumtransportFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMTRANSPORT_FEE"]));
			this.PackFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["PACK_FEE"]));
			this.LossFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["LOSS_FEE"]));
			this.OfficeFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["OFFICE_FEE"]));
			this.ServerFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["SERVER_FEE"]));
			this.SumTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUM_TAX"]));
        }
		
		public FinReportProfitEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReportId = Convert.ToString(CommonFunctions.ToObject(dr["REPORT_ID"]));
			this.ProfitDate = Convert.ToString(CommonFunctions.ToObject(dr["PROFIT_DATE"]));
			this.Sumc = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMC"]));
			this.Sumw = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMW"]));
			this.Sumnext = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMNEXT"]));
			this.Sumsalary = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMSALARY"]));
			this.Sumrepair = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMREPAIR"]));
			this.Sumspa = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMSPA"]));
			this.Sumexpenses = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMEXPENSES"]));
			this.Summater = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMMATER"]));
			this.SumtransportFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUMTRANSPORT_FEE"]));
			this.PackFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["PACK_FEE"]));
			this.LossFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["LOSS_FEE"]));
			this.OfficeFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["OFFICE_FEE"]));
			this.ServerFee = Convert.ToDecimal(CommonFunctions.ToObject(dr["SERVER_FEE"]));
			this.SumTax = Convert.ToDecimal(CommonFunctions.ToObject(dr["SUM_TAX"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FinReportProfitTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string ReportId
        {
            get { return Convert.ToString(GetData(FinReportProfitTable.C_REPORT_ID)); }
            set { SetData(FinReportProfitTable.C_REPORT_ID, value); }
        }
		
        [DataMember]
        public string ProfitDate
        {
            get { return Convert.ToString(GetData(FinReportProfitTable.C_PROFIT_DATE)); }
            set { SetData(FinReportProfitTable.C_PROFIT_DATE, value); }
        }
		
        [DataMember]
        public decimal Sumc
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMC)); }
            set { SetData(FinReportProfitTable.C_SUMC, value); }
        }
		
        [DataMember]
        public decimal Sumw
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMW)); }
            set { SetData(FinReportProfitTable.C_SUMW, value); }
        }
		
        [DataMember]
        public decimal Sumnext
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMNEXT)); }
            set { SetData(FinReportProfitTable.C_SUMNEXT, value); }
        }
		
        [DataMember]
        public decimal Sumsalary
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMSALARY)); }
            set { SetData(FinReportProfitTable.C_SUMSALARY, value); }
        }
		
        [DataMember]
        public decimal Sumrepair
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMREPAIR)); }
            set { SetData(FinReportProfitTable.C_SUMREPAIR, value); }
        }
		
        [DataMember]
        public decimal Sumspa
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMSPA)); }
            set { SetData(FinReportProfitTable.C_SUMSPA, value); }
        }
		
        [DataMember]
        public decimal Sumexpenses
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMEXPENSES)); }
            set { SetData(FinReportProfitTable.C_SUMEXPENSES, value); }
        }
		
        [DataMember]
        public decimal Summater
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMMATER)); }
            set { SetData(FinReportProfitTable.C_SUMMATER, value); }
        }
		
        [DataMember]
        public decimal SumtransportFee
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUMTRANSPORT_FEE)); }
            set { SetData(FinReportProfitTable.C_SUMTRANSPORT_FEE, value); }
        }
		
        [DataMember]
        public decimal PackFee
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_PACK_FEE)); }
            set { SetData(FinReportProfitTable.C_PACK_FEE, value); }
        }
		
        [DataMember]
        public decimal LossFee
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_LOSS_FEE)); }
            set { SetData(FinReportProfitTable.C_LOSS_FEE, value); }
        }
		
        [DataMember]
        public decimal OfficeFee
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_OFFICE_FEE)); }
            set { SetData(FinReportProfitTable.C_OFFICE_FEE, value); }
        }
		
        [DataMember]
        public decimal ServerFee
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SERVER_FEE)); }
            set { SetData(FinReportProfitTable.C_SERVER_FEE, value); }
        }
		
        [DataMember]
        public decimal SumTax
        {
            get { return Convert.ToDecimal(GetData(FinReportProfitTable.C_SUM_TAX)); }
            set { SetData(FinReportProfitTable.C_SUM_TAX, value); }
        }
		
		#endregion
	}
	
	
}	

